package com.icss.dao;

import java.util.List;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import com.icss.entity.Review;

public interface reviewDao {
	@Select("select * from review")
	public List<Review> findAll();
	@Delete("delete from review where c_reviewid=#{c_reviewid}")
	public int deleReview(int c_reviewid);
	@Insert("insert into review values(default,#{c_id},null,#{DishId},#{Reviewclassid},#{Content},now(),now())")
	public int insReview(Review review);
	@Insert("insert into review values(default,#{c_id},#{rev_c_reviewid},#{DishId},4,#{Content},now(),now())")
	public int repReview(Review review);
}


